package org;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Observable;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.List;

/**
 * Created by yangshunxing on 2017/6/23.
 */
public class ObservableTest implements Runnable{
    List<Integer> lockObject;
    ReadWriteLock lock;
    Integer value;


    public static void main(String[] args) {
//        ObervableTarget target = new ObervableTarget();
//        ObervableTarget target = new ObervableTarget();
//        Observabler o1 = new Observabler("张三");
//        Observabler o2 = new Observabler("李四");
//        target.addObserver(o1);
//        target.addObserver(o2);
//        System.out.println(target.countObservers());
//        target.notifyObservers(o2);

        String test = "don\"t";
        test = test.replace("\"","”");
        System.out.println(test);

        ReadWriteLock lock = new ReentrantReadWriteLock();
        lock.readLock();

        ExecutorService pool = Executors.newFixedThreadPool(2);
    }

    @Override
    public void run() {
    }
}
